#pragma once

#include <atlstr.h>

namespace PPLiveLogClient
{

// wrap CStringA, DO NOT expose any operation that require detect '\0' to determine data length.
// because when use as binary data, it's possible '\0' in data
class SimpleBinaryData
{
public:
	SimpleBinaryData();
	SimpleBinaryData(const CStringA& data);
	virtual ~SimpleBinaryData(void);

	BYTE* GetBuffer(int minBufferBytes);
	void ReleaseBuffer(int dataActualBytes);

	const BYTE* Data() const;
	int DataBytes() const;

private:
	CStringA _data;

};

}

